﻿@model UscSunShine.Models.Request

@{
    ViewBag.Title = "回复";
}

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()

    <div class="form-horizontal">
        
        <hr />
        <h4></h4>
        @Html.ValidationSummary(true)
        @Html.HiddenFor(model => model.ID)
        @Html.HiddenFor(model=>model.DepartmentID)
        <div class="form-group">
            @Html.LabelFor(model => model.DepartmentID, "受理部门", new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.TextBoxFor(model => model.Department.Name, new {@class = "form-control", @readonly="readonly"})
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.RequestCategory, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @*@Html.DropDownList("RequestCategory")*@
                @Html.EnumDropDownListFor(t => t.RequestCategory)
                @Html.ValidationMessageFor(model => model.RequestCategory)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.ProcessStatus, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @*@Html.DropDownList("ProcessStatus")*@
                @Html.EnumDropDownListFor(t => t.ProcessStatus)
                @Html.ValidationMessageFor(model => model.ProcessStatus)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.AcceptNumber, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.TextBoxFor(model => model.AcceptNumber, htmlAttributes: new { @class = "form-control",@readonly = "readonly" })
                @Html.ValidationMessageFor(model => model.AcceptNumber)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.Title, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.TextBoxFor(model => model.Title, htmlAttributes: new { @class = "form-control", @readonly = "readonly" })
                @Html.ValidationMessageFor(model => model.Title)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.Content, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.TextAreaFor(model => model.Content)
                @Html.ValidationMessageFor(model => model.Content)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.Username, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.TextBoxFor(model => model.Username, new { @class = "form-control", @readonly = "readonly" })
                @Html.ValidationMessageFor(model => model.Username)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.ContactPhone, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.TextBoxFor(model => model.ContactPhone, new { @class = "form-control", @readonly = "readonly" })
                @Html.ValidationMessageFor(model => model.ContactPhone)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.Email, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.TextBoxFor(model => model.Email, new { @class = "form-control", @readonly = "readonly" })
                @Html.ValidationMessageFor(model => model.Email)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.AcceptDate, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.TextBoxFor(model => model.AcceptDate, new { @class = "form-control", @readonly = "readonly" })
                
                @Html.ValidationMessageFor(model => model.AcceptDate)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.ExpectResolveDate, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.TextBoxFor(model => model.ExpectResolveDate, new { @class = "form-control", @readonly = "readonly" })
                
                @Html.ValidationMessageFor(model => model.ExpectResolveDate)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.AuditDate, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.TextBoxFor(model => model.AuditDate, new { @class = "form-control", @readonly = "readonly" })
                
                @Html.ValidationMessageFor(model => model.AuditDate)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.ViewTimes, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.ViewTimes)
                @Html.ValidationMessageFor(model => model.ViewTimes)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.RespondContent, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.TextAreaFor(model => model.RespondContent)
                @Html.ValidationMessageFor(model => model.RespondContent)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.ProcessDate, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.ProcessDate)
                
                @Html.ValidationMessageFor(model => model.ProcessDate)
            </div>
        </div>

        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="保存" class="btn btn-primary" />
            </div>
        </div>
    </div>
}

<div>
    @Html.ActionLink("返回服务信息列表", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
    <link rel="stylesheet" href="~/KindEditor/themes/default/default.css" />
    <link rel="stylesheet" href="~/KindEditor/plugins/code/prettify.css" />
    <script charset="utf-8" src="~/KindEditor/kindeditor-min.js"></script>
    <script type="text/javascript" src="~/KindEditor/lang/zh_CN.js"></script>
    <script charset="utf-8" src="~/KindEditor/plugins/code/prettify.js"></script>
    <script type="text/javascript" src="~/Scripts/usc-content.js"></script>
}
